package com.tjetc.dao;

import com.sun.org.apache.xpath.internal.operations.Or;
import com.tjetc.entity.MerchantDishResponse;
import com.tjetc.entity.Order;
import com.tjetc.entity.OrderRequest;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

//商家操作订单的数据库操作接口
public interface MerchantOrderMapper {
    //根据商家id查询所有的新订单
    List<Order> selectNewOrdersByMerchantId(int id);

    //查询商家所有订单
    List<Order> selectAllOrdersByMerchantId(int id);

    //根据订单id搜索菜品
    List<MerchantDishResponse> selectDishByOrderId(int id);

    //更新订单状态
    int updateStatusByOrderId(Integer id);
    Order selectOrderById(Integer id);

    List<Order>selectOrdersWith(HashMap map);

    Integer countOrdersWith(HashMap map);
}
